﻿using Esosi.Entity;
using System;
using System.Collections.Generic;
using System.Text;

namespace Esosi.Register.Hospital.HospitalPolicy
{
    public class ChargePolicyFactory
    {
        public static PolicyStrategyBase CreatePolicy(GmChargePolicy gmChargePolicy)
        {
            PolicyStrategyBase ps = null;
            switch (gmChargePolicy.PolicyType)
            {
                case HospitalPolicyType.SumRation:
                    ps = new SumPolicyStrategy(gmChargePolicy);
                    break;

                case HospitalPolicyType.SortRation:
                    break;

                case HospitalPolicyType.SortScale:
                    ps = new SortPolicyStrategy(gmChargePolicy);
                    break;

                case HospitalPolicyType.SumScale:
                    break;

                case HospitalPolicyType.InhosBasePayLine:
                    break;

                case HospitalPolicyType.InhosRationScale:
                    break;

                default:
                    break;
            }

            return ps;
        }
    }
}